Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Dynamic Combo Box Bug? Validation Error: Value is not valid.
Feedback Type: Problem
Product Area: Domino Designer on Eclipse (DDE)
Technical Area: Functionality
Platform: Windows Vista client
Release: 8.5.1
Reproducible: Always

I have two combo boxes on an xPage, category and subcategory. Both are based on lookups, with the subcategory using the category as the key. This all works fine, and I can get the subcategory to dynamically change using the onChange event of the category, with the 'do not validate...' option turned on.

The problem is when I try to save the xPage (using a button that does 'full update'). If the chosen subcategory was not part of the original choices when the page was first rendered, it won't save, giving me the error:

Validation error: value is not valid

The stack trace says:

Java.util.nosuchelement

This seems to be a common issue on the JSF forums, but I haven't found an xPage specific solution.

I do have a workaround: I add a default category called "please choose a category", and then hide the subcategory item when that is the chosen category, ie when the page is first opened. The subcategory field then returns ALL subcategories as its choices when the category is 'please choose a category'. No one sees the full list, because the field isn't rendered at that point, but once the list is filtered and rendered, there doesn't seem to be any problems saving.

Is there a better fix, or am I missing something simple?

Thanks,

Karl


Feedback number WEBB82XSA6 created by ~Samuel Nonfoopuloden on 02/23/2010

Status: Open
Comments:

Dynamic Combo Box Bug? Validation E... (~Samuel Nonfoop... 23.Feb.10)
. . Spoke too soon.... (~Samuel Nonfoop... 23.Feb.10)
. . Find a solution (~Justin Opjumic... 24.May.11)
. . . . try this... (~Cheryl Dwojumi... 4.Oct.12)
. . . . Space around values (~Lorraine Nimhi... 21.Apr.14)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS